/*
 *  main.cpp
 *  GLV
 *
 *  Created by Simao R on 09/05/13.
 *  Copyright 2009 Home Studio. All rights reserved.
 *
 */

#include "cliente.h"
#include "video.h"

#include <iostream>
using namespace std;

void menu();
void clientes();
void videos();

	
	
main() {
	cout << endl << endl;
	cout << "\t *** Gestão Loja de Videos ***" << endl << endl;
	
	int escolha=3;
	int cliente, video;
	
	while (escolha!=0) { // escolha de menu
		
		if(escolha==3) { // menu principal
			menu();
			cin >> escolha;
		}
		
		if(escolha==1)  { // menu de clientes
			clientes();
			cin >> cliente;
			if(cliente==1) continue;
			if(cliente==2) continue;
			if(cliente==3) continue;
			if(cliente==4) continue;
			if(cliente==5) { escolha=3; }
			continue;
		}
		
		if(escolha==2) { //menu de videos
			videos();
			cin >> video;
			if(video==1) continue;
			if(video==2) continue;
			if(video==3) continue;
			if(video==4) continue;
			if(video==5) { escolha=3; }
 			continue;
		}
		
	}
	
}




void menu() {
	cout << "\t\t ---- Menu ---- " << endl << endl;
	cout << "\t\t 1 - Clientes" << endl;
	cout << "\t\t 2 - Videos" << endl;
	cout << "\t\t 0 - Sair do programa" << endl << endl;
}

void clientes() {
	cout << "\t\t ---- Clientes ---- " << endl << endl;
	cout << "\t\t 1 - Adicionar" << endl;
	cout << "\t\t 2 - Editar" << endl;
	cout << "\t\t 3 - Remover" << endl;
	cout << "\t\t 4 - Consultar" << endl;
	cout << "\t\t 5 - Menu" << endl << endl;
}

void videos() {
	cout << "\t\t ---- Videos ---- " << endl << endl;
	cout << "\t\t 1 - Adicionar" << endl;
	cout << "\t\t 2 - Editar" << endl;
	cout << "\t\t 3 - Remover" << endl;
	cout << "\t\t 4 - Consultar" << endl;
	cout << "\t\t 5 - Menu" << endl << endl;
}
